import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);



//存储表单信息
export default {
	//路由key
	 BASEMESSAGE_KEY: 'BASEMESSAGE_KEY',
	 IVFFOLLOWING_KEY: 'IVFFOLLOWING_KEY',
	 PHYSICALEXAMINATION_KEY: 'PHYSICALEXAMINATION_KEY',
	 OVULATIONINDUCTION_KEY: 'OVULATIONINDUCTION_KEY',
	 EMBRYOSINDUCTION_KEY: 'EMBRYOSINDUCTION_KEY',
	 FREEZINGSTORAGE_KEY: 'FREEZINGSTORAGE_KEY',
	 EMBRYOMOVE_KEY: 'EMBRYOMOVE_KEY',
	 INGRAVIDATION_KEY: 'INGRAVIDATION_KEY',
	 //currentRoute
	 CURRENTROUTE_KEY:'CURRENTROUTE_KEY',
	fetch(key){

		return JSON.parse(window.localStorage.getItem(key)) || new Object()
	},save(items,key){
		window.localStorage.setItem(key,JSON.stringify(items))
	}



}